<%@ page import="com.java.model.Account" %>
<%@ page import="com.java.model.Advertiser" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html><!-- This web page is copied by "https://bazhan.wang" --><html><head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<title></title>
<meta name="keywords" content="软文发布,软文发布平台,品牌营销,品牌营销平台">
<meta name="description" content="117营销致力打造软文发布与品牌营销效果追踪平台，帮助中小企业在营销决策，营销投放，效果追踪三个环节上，实现自动发布软文稿件，以及自动追踪品牌营销效果。">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="/layui/css/video-js.css">
<link rel="stylesheet" href="/layui/css/all.css">
<link rel="stylesheet" href="/layui/css/myunmei.css">
<link rel="stylesheet" href="/layui/css/pageLogin.css">
<link rel="stylesheet" href="/layui/lib/layui-v2.6.3/css/layui.css" media="all">
<link rel="stylesheet" href="/layui/css/public.css" media="all">

<link rel="stylesheet" href="/iqianfeng/css/animate.css">
<link rel="stylesheet" href="/iqianfeng/css/swiper.min.css">
<link rel="stylesheet" href="/iqianfeng/css/city-picker.css">
<link rel="stylesheet" href="/iqianfeng/css/jquery.validator.css">
<link rel="stylesheet" href="/iqianfeng/css/all.css">
<link rel="stylesheet" href="/iqianfeng/css/common.css">
<link rel="stylesheet" href="/iqianfeng/css/index.css">
<link rel="icon" href="/iqianfeng/img/tubiao2.png">

<script src="/layui/js/uaredirect.min.js"></script>
<script>uaredirect("/wap/index.html");</script>


<script src="/layui/js/jquery-1.8.3.min.js"></script>
<!--[if IE 8]>
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
<script src="/layui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<style>
.wechat-char > div > div:first-child, .friend-char > div:first-child, .weibo-char > div:first-child, .live-char > div:first-child {
display:none!important;
}
</style>
<![endif]-->
</head>
<body>

<!--LOADING-->
<div class="pageLoading">
    <div class="circle1"></div><div class="circle2"></div>
    <div class="text"><span></span></div>
</div>
<div class="__user__" id="__user__" data-usertype="-1" data-userid="" data-mobile=""></div>
<!--PAGE-HEADER-->
<header id="header"><!-- <a href="https://baogao.iqianfeng.com/" target="_blank" rel="nofollow"><img src="/public/img/zhuce.png" class="img" style="width: 100%;display: block; cursor: pointer;" ></a> -->
    <nav class="nav-fixed-top" id="pc_header">
        <div class="container">
            <div class="navbar">
                <div class="navbar-header">
                    <a href="#" class="nav-brand">
                        <img class="img" src="/iqianfeng/img/111.png" style="  height: 50px;">
                    </a>
                    <div class="navbar-tools">
                        <span class="icon more"></span>
                    </div>
                </div>
                <div class="navbar-mask">
                    <div class="com_header_collapse animate_3">
                        <div class="nav-mob_collapse_head">
                            <a href="https://www.iqianfeng.com" class="nav-brand">
                                <img class="img" src="/iqianfeng/img/111.png" alt="117营销 | 软文发布与品牌营销效果追踪平台">
                            </a>
                        </div>
                        <div class="com_header_collapse_ul_cont">
                            <ul class="nav navbar-nav navbar-nav-left">
                                <li class="active">
                                    <a href="/index" class="nav-link">首页</a>
                                </li>
                                <li class="dropdown">
                                    <a href="/media?platformId=2" class="dropdown-toggle nav-link linkTo" data-link="worth-section">微博<b class="icon"></b><span class="htip-Hot">HOT</span></a>
                                </li>
                                <li class="dropdown">
                                    <a href="/media?platformId=3" class="dropdown-toggle nav-link linkTo" data-link="worth-section">小红书<b class="icon"></b><span class="htip-Hot">HOT</span></a>
                                </li>
                                <li class="dropdown">
                                    <a href="/media?platformId=5" class="dropdown-toggle nav-link linkTo" data-link="worth-section">抖音<b class="icon"></b><span class="htip-Hot">HOT</span></a>
                                </li>
                                <li class="dropdown">
                                    <a href="/media?platformId=4" class="dropdown-toggle nav-link linkTo" data-link="worth-section">b站<b class="icon"></b><span class="htip-Hot">HOT</span></a>
                                </li>

                            </ul>
                            <ul class="nav navbar-nav navbar-nav-right com_header_collapse_ul_cont_btns layui-nav layui-layout-right" style="background-color: #393d4900;margin-top: 6px;margin-right: 8px">
                                <li class="dropdown">
                                    <a href="/advertising" class="nav-link linkTo" target="_blank">我的订单</a>
                                </li>
                                <c:if test="${account ==null }">
                                    <li>
                                        <a href="/openLogin" data-bd_yx="ty1" rel="nofollow" target="_top" class="nav-link spl-link" style="color: black">立即登录</a>
                                    </li>
                                </c:if>

                                <c:if test="${account !=null }">
                                    <li class="layui-nav-item layuimini-setting">
                                        <a href="javascript:;" class="nav-link linkTo" style="color: black">${account.username}</a>
                                        <dl class="layui-nav-child">
                                            <dd>
                                                <a href="/openLogin" class="login-out">退出登录</a>
                                            </dd>
                                            <dd>
                                                <a href="/Personal?id=${account.id}" class="login-out">个人中心</a>
                                            </dd>
                                            <dd>
                                                <a href="/balance?id=${account.id}" class="login-out">余额</a>
                                            </dd>
                                        </dl>
                                    </li>
                                </c:if>

                                <%--                                <li>--%>
                                <%--                                    <a href="http://a.iqianfeng.com/" data-bd_yx="ty1" rel="nofollow" target="_blank" class="btn-link btn btn-theme nav-link">立即开始推广</a>--%>
                                <%--                                </li>--%>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <aside id="asideBar">
        <div class="aside-div" id="aside-tel" title="咨询电话">
            <i class="ico ico-tel"></i>
            <div class="details change-3">
                <p class="aside-title">咨询电话</p>
                <p class="aside-desc">15568313136</p>
            </div>
        </div>
        <div class="aside-div" id="aside-gzh" title="公众号">
            <i class="ico ico-gzh"></i>
            <div class="details change-3">
                <p class="aside-title text-center">关注公众号</p>
                <img src="/iqianfeng/img/7913760f0b2c6e31b32c8e1305d5053.jpeg">
            </div>
        </div>
        <div class="aside-div" id="aside-wx" title="官方微信">
            <i class="ico ico-wx"></i>
            <div class="details change-3" style="width: 0px; padding: 0px;">
                <p class="aside-title text-center">微信二维码</p>
                <img src="/iqianfeng/img/gongzhonghao-2.png">
            </div>
        </div>
        <div id="aside-zx" title="业务咨询">
            <i class="ico ico-zx btn-ly-ask" data-source="117官网-侧边栏"></i>
        </div>
        <div id="aside-ask" title="在线客服">
            <i class="ico ico-ask btn-ly-tidio"></i>
        </div>
    </aside>
</header>
<br>
<!-- container start -->
<div class="container" style="margin-top: 200px">
    <!-- login start -->

    <!-- longin end -->
    <!-- slider start -->
    <!-- video-view end -->
    <!-- weibo-view start -->
    <!-- weibo-view end -->
    <!-- success-case1 start -->
    <div class="main-width success-case1">
        <div class="view-tabs tabs">
            <ul class="tabs-title">
                <li class="cur" id="yew">待投放</li>
                <li id="yew2">已投放</li>
                <li id="yew3">已完成</li>
            </ul>
        </div>
        <div class="view-content list">
            <div class="content tabCon">
                <h2>待投放</h2>
                <div class="content-desc">
                    <%-- layui开始 --%>
                       <div class="layuimini-container">
                        <div class="layuimini-main">
                            <input name="id" value="${id}" type="hidden">
                            <fieldset class="table-search-fieldset">
                                <legend>搜索信息</legend>
                                <div style="margin: 10px 10px 10px 10px">
                                    <form class="layui-form layui-form-pane" action="">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">广告主用户</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="username" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">广告主用户</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="username" autocomplete="off" class="layui-input" >
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">账号状态</label>
                                                <div class="layui-input-inline">
                                                    <select class="layui-select" name="typeId">
                                                        <option value="">全部</option>
                                                        <c:forEach items="${types}" var="type">
                                                            <option value="${type.id}">${type.name}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </fieldset>

                            <script type="text/html" id="toolbarDemo">
                                <div class="layui-btn-container">
<%--                                    <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="add"> 查看公司详情 </button>--%>
                                </div>
                            </script>

                            <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

<%--                            <script type="text/html" id="currentTableBar">--%>
<%--                                <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" href="">重新投放</a>--%>
<%--                            </script>--%>

                        </div>
                </div>
                    <%-- layui结束 --%>
                </div>
            </div>
            <div class="content tabCon no-show">
                <h2>已投放</h2>
                <div class="content-desc">
                    <%-- layui开始 --%>
                    <div class="layuimini-container">
                        <div class="layuimini-main">
                            <fieldset class="table-search-fieldset">
                                <legend>搜索信息</legend>
                                <div style="margin: 10px 10px 10px 10px">
                                    <form class="layui-form layui-form-pane" action="">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">用户名</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="username" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">备注</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="remark" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">价格</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="price" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </fieldset>


                            <table class="layui-hide" id="currentTableId2" lay-filter="currentTableFilter"></table>
                            <script type="text/html" id="currentTableBar2">
                                <%--            <c:if test="status=='2'||status=='4'||status =='3'">--%>
                                <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="yes">验收</a>
                                <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="no">拒绝验收</a>
                                <%--            </c:if>--%>
                            </script>

                        </div>
                    </div>
                    <%-- layui结束 --%>
                </div>
            </div>
            <div class="content tabCon no-show">
                <h2>已完成</h2>
                <div class="content-desc">
                    <%-- layui开始 --%>

                        <div class="layuimini-container">
                            <div class="layuimini-main">
                                <fieldset class="table-search-fieldset">
                                    <legend>搜索信息</legend>
                                    <div style="margin: 10px 10px 10px 10px">
                                        <form class="layui-form layui-form-pane" action="">
                                            <div class="layui-form-item">
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">用户名</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="userName" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">编码</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="userCode" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">性别</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="userSex" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </fieldset>
                                <table class="layui-hide" id="currentTableId3" lay-filter="currentTableFilter"></table>

                            </div>
                        </div>
                    <%-- layui结束 --%>
                </div>
            </div>
            <div class="content tabCon no-show">
                <h2>香港城市经营研究院</h2>
                <div class="content-desc">
                </div>
            </div>
            <div class="content tabCon no-show">
                <h2>宝洁</h2>
                <div class="content-desc">
                </div>
            </div>
        </div>
    </div>

    <!-- success-case1 end -->
    <!-- use-user start -->



    <!-- use-user end -->
    <!-- teamwork-partner start -->



    <!-- teamwork-partner end -->
    <!-- ad-list start -->


    <!-- ad-list end -->
</div>
<!-- 优惠券 -->
<div class="couponBag-reg hide" style="width:165px;height:130px;position:fixed;z-index:5;bottom:3%;right:3%;">

    <a href="/userRegPg.html"><img src="/layui/img/couponBag-reg.png" style="width:100%;height:100%;"></a>
</div>
<em data-m="y.z.m.c.r"></em>


<!-- 极验验证 -->

<script src="/layui/js/gt.js"></script>
<!-- 螺丝帽验证 -->

<script src="/layui/js/api.js"></script>
<!-- dataModule - 用户信息接口模块 -->

<script src="/layui/js/userDataModel.js"></script>
<script src="/layui/js/api_1.js"></script>
<script src="/layui/js/global.js"></script>




<%--<style type="text/css">--%>
<%--    .ASIDEBAR {position:fixed; right:0; bottom:200px; z-index:5;}--%>
<%--    .ASIDEBAR &gt; * {position:relative; width:60px; height:60px; margin-top:-1px;}--%>
<%--    .ASIDEBAR &gt; * {border:1px #ddd solid; border-right:0; z-index:1;}--%>
<%--    .ASIDEBAR &gt; *:hover {border:1px #4eb6ff solid; border-right:0; z-index:2;}--%>
<%--    .ASIDEBAR &gt; *:first-child {border-top-left-radius:10px;}--%>
<%--    .ASIDEBAR &gt; *:last-child {border-bottom-left-radius:10px;}--%>
<%--    .ASIDEBAR &gt; .side {background:white url(img/icon-aside.png) left top no-repeat; background-size:100% auto;}--%>
<%--    .ASIDEBAR &gt; .side:hover {background:#4eb6ff url(img/icon-aside.png) left top no-repeat;}--%>
<%--    .ASIDEBAR &gt; .side.service {background-position:0 0;}--%>
<%--    .ASIDEBAR &gt; .side.service:hover {background-position:0 -60px;}--%>
<%--    .ASIDEBAR &gt; .side.wechat {background-position:0 -120px;}--%>
<%--    .ASIDEBAR &gt; .side.wechat:hover {background-position:0 -180px;}--%>
<%--    .ASIDEBAR &gt; .side.gotop {background-position:0 -240px;}--%>
<%--    .ASIDEBAR &gt; .side.gotop:hover {background-position:0 -300px;}--%>
<%--    .ASIDEBAR &gt; .side.gotop {cursor:pointer;}--%>
<%--    .ASIDEBAR &gt; .side &gt; * {position:absolute; padding-right:10px; top:50%; -webkit-transform:translateY(-50%); transform:translateY(-50%);}--%>
<%--    .ASIDEBAR &gt; .side &gt; * {right:9999px;}--%>
<%--    .ASIDEBAR &gt; .side:hover &gt; * {right:100%;}--%>
<%--    .ASIDEBAR &gt; .side .box {border:1px #ddd solid; background:#fff;}--%>
<%--    .ASIDEBAR &gt; .side .box &gt; * {margin-bottom:12px;}--%>
<%--    .ASIDEBAR &gt; .side .box &gt; .sec &gt; .tit {width:150px; margin:0 auto; height:46px; line-height:46px;}--%>
<%--    .ASIDEBAR &gt; .side .box &gt; .sec &gt; .tit {border-bottom:1px #ddd solid; text-align:center;}--%>
<%--    .ASIDEBAR &gt; .side .box &gt; .sec &gt; .tit &gt; * {font-size:17px;}--%>
<%--    .ASIDEBAR &gt; .side .box &gt; .sec &gt; .text {display:table; margin:0 auto; font-size:14px; opacity:.8;}--%>
<%--    .ASIDEBAR &gt; .side.service .box {width:240px;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.qq {display:table; margin:0 auto; width:60px; height:60px;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.qq {background:url(img/qq-server.png) center center no-repeat;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele {display:table; position:relative; margin:0 auto;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele {height:24px; line-height:24px; padding-left:30px;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele &gt; * {font-size:16px; color:#4eb6ff;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele:before {position:absolute; content:&quot;&quot;; width:20px; height:20px;}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele:before {left:0; top:50%; -webkit-transform:translateY(-50%); transform:translateY(-50%);}--%>
<%--    .ASIDEBAR &gt; .side.service .box &gt; .sec &gt; a.tele:before {background:url(img/icon-telephone.png) center no-repeat;}--%>
<%--    .ASIDEBAR &gt; .side.wechat .box {width:180px;}--%>
<%--    .ASIDEBAR &gt; .side.wechat .box &gt; * {margin-bottom:10px;}--%>
<%--    .ASIDEBAR &gt; .side.wechat .box &gt; .sec &gt; .qrcode {display:table; width:140px; margin:0 auto;}--%>
<%--    .ASIDEBAR &gt; .side.wechat .box &gt; .sec &gt; .qrcode &gt; img {width:100%;}--%>
<%--</style>--%>

<script type="text/javascript">
    ;(function(){$('.side.gotop').on('click',function(){$('html,body').animate({scrollTop:0},200);})}());
</script>

<!-- aside end -->

<!-- 提示弹框 -->
<%--<div class="tips-pop">--%>
    <!-- <div class="tips-header">
        <h2>60万+用户使用云自媒</h2>
        <span class="tips-close">&#9587;</span>
    </div> -->
<%--    <div class="tips-main">--%>
<%--        <span class="tips-close">╳</span>--%>
<%--        <img src="/layui/img/tips-banner.png">--%>
<%--        <div class="tips-text">--%>
<%--<c:if test="${advertiser != null}">--%>
<%--            <div class="">--%>
<%--                <p class="color-4eb6ff p-top-16">25万媒体资源报价</p>--%>
<%--                <p class="color-4eb6ff p-bottom-16">5分钟创建报价单</p>--%>
<%--                <a class="bg-4eb6ff" href="/openRegister" target="_blank">免费注册</a>--%>
<%--            </div>--%>
<%--</c:if>--%>
<%--            <div class="">--%>
<%--                <p class="color-ffb600 p-top-16">一对一专业服务</p>--%>
<%--                <p class="color-ffb600 p-bottom-16">专业的解决方案</p>--%>
<%--                <!-- <a class="bg-ffb600" href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&uin=4008160560" target="_blank">在线咨询</a> -->--%>
<%--                <a class="bg-ffb600" href="https://p.qiao.baidu.com/cps4/chatIndex?siteToken=ca649477ab8c294fcd072a7f3a74b5c2&amp;speedLogId=159296952568836df_1592969525688_21466&amp;eid=23022224&amp;reqParam=%7B%22from%22%3A0%2C%22sid%22%3A%22-100%22%2C%22tid%22%3A%22-1%22%2C%22ttype%22%3A1%2C%22siteId%22%3A%2210314893%22%2C%22userId%22%3A%2223022224%22%2C%22pageId%22%3A0%7D" target="_blank">在线咨询</a>--%>
<%--            </div>--%>
<%--        </div>--%>
<%--    </div>--%>
<%--</div>--%>
<%--<script src="/iqianfeng/js/jquery.min.js"></script>--%>
<%--<script src="/iqianfeng/js/swiper.min.js"></script>--%>
<script src="/iqianfeng/js/wow.min.js"></script>
<script src="/iqianfeng/js/layer.js"></script>
<script src="/iqianfeng/js/jquery.validator.js"></script>
<script src="/iqianfeng/js/city-picker.data.js"></script>
<script src="/iqianfeng/js/city-picker.js"></script>
<script src="/iqianfeng/js/common.js"></script>
<script src="/iqianfeng/js/index.js"></script>
<script src="/layui/js/echarts.min.js"></script>

<script src="/layui/js/echarts_theme.js"></script>
<script src="/layui/js/video.js"></script>
<script src="/layui/js/store.min.js"></script>

<script>
    var baseUrl = "";
    $(function() {
        initEffect();
        loadTab(51, 0);
        loadTab(13, 0);
        loadTab(17, 0);
        loadTab(11, 0);
        loadTab(98, 0);
        loadTab(99, 0);
    });

    if (localStorage.getItem('userType') - 0 < 0) {
        $('.couponBag-reg').removeClass('hide');
    }
</script>
<script src="/layui/js/includeLoad.js"></script>
<script src="/layui/js/jquery.md5.js"></script>
<script src="/layui/js/all.js"></script>

</body>
<script>
    (function () {
        var indexPlate = getUrlRequest('plate');
        if (indexPlate && (indexPlate != 51 || indexPlate != 13 || indexPlate != 17 || indexPlate != 11 || indexPlate != 98)) location.href = '/index.html';

    })();
</script>
<script src="/layui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        $('#yew').click(function(){
            table.reload('currentTableId', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
        });

        table.render({
            elem: '#currentTableId',
            url: '/advertiser/launch/list?adsId='+${account.id},
            method: 'post',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'id', title: 'ID', sort: true},
                {field: 'theme', title: '主题'},
                {field: 'brand', title: '品牌'},
                {templet:'<div>{{d.media.accountName}}</div>', title: '媒体主'},
                {title: '状态', templet: function (res) {
                        if (res.status == '1') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">自媒体审核</a>';
                        } else if (res.status == '2') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">平台审核</a>';
                        } else if (res.status == '3'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">投放完成</a>';
                        }else if (res.status == '4'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">正在投放中</a>';
                        }else if (res.status == '5'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">媒体主未通过</a>';
                        }else if (res.status == '6'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">管理员审核未通过</a>';
                        }else if (res.status == '7'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已拒绝验收</a>';
                        }else if (res.status == '8'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已完成验收</a>';
                        }
                    }},
                // {title: '操作', minWidth: 150, toolbar: '#currentTableBar', align: "center"}
            ]],
            limits: [10, 20, 30, 50, 100],
            limit: 10,
            page: true,
            request: {
                pageName: 'pageNum',
                limitName: 'pageSize'
            }
        });

        // 监听搜索操作
        form.on('submit(data-search-btn)', function (data) {
            /*var result = JSON.stringify(data.field);
            layer.alert(result, {
                title: '最终的搜索信息'
            });*/

            table.reload('currentTableId', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
            return false;
        });
    });
</script>

<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        $('#yew2').click(function(){
            table.reload('currentTableId2', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
        });

        table.render({
            elem: '#currentTableId2',
            url: '/advertiser/launch/put?adsId='+${account.id},
            method: 'post',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'id', title: 'ID', sort: true},
                {field: 'theme', title: '主题'},
                {field: 'brand', title: '品牌'},
                {field: 'price', title: '投放价格'},
                {templet:'<div>{{d.mediaId}}</div>', title: '媒体主id'},
                {templet:'<div>{{d.media.accountName}}</div>', title: '媒体主'},
                {title: '状态', templet: function (res) {
                        if (res.status == '1') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">自媒体审核</a>';
                        } else if (res.status == '2') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">平台审核</a>';
                        } else if (res.status == '3'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">投放完成</a>';
                        }else if (res.status == '4'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">正在投放中</a>';
                        }else if (res.status == '5'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">媒体主未通过</a>';
                        }else if (res.status == '6'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">管理员审核未通过</a>';
                        }else if (res.status == '7'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已拒绝验收</a>';
                        }else if (res.status == '8'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已完成验收</a>';
                        }
                    }},
                // {title: '操作', minWidth: 150, toolbar: '#currentTableBar', align: "center"}
                {title: '操作', minWidth: 150, toolbar: '#currentTableBar2', align: "center"}
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 10,
            page: true,
            request: {
                pageName: 'pageNum',
                limitName: 'pageSize'
            }
        });

        // 监听搜索操作
        form.on('submit(data-search-btn)', function (data) {
            /*var result = JSON.stringify(data.field);
            layer.alert(result, {
                title: '最终的搜索信息'
            });*/

            table.reload('currentTableId2', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
            return false;
        });

        //监听表格复选框选择
        table.on('checkbox(currentTableFilter)', function (obj) {
            console.log(obj)
        });

        table.on('tool(currentTableFilter)', function (obj) {
            var data = obj.data;
            if (obj.event === 'details') {
                var index = layer.open({
                    title: '广告主详情',
                    type: 2,
                    shade: 0.2,
                    maxmin:true,
                    shadeClose: true,
                    area: ['50%', '60%'],
                    content: '/advertiser/details?id=' + data.id,
                });
                $(window).on("resize", function () {
                    layer.full(index);
                });
                return false;
            } else if (obj.event === 'yes') {
                    $.ajax({
                        url: '/advertiser/yes',
                        type: 'post',
                        data: {"id": data.id,"price": data.price,"adsId": ${account.id},"mediaId":data.mediaId},
                        dataType: 'json',
                        success: function (result) {
                            if (result.code == '0') {
                                // 重新加载表格数据
                                table.reload('currentTableId2', {
                                    page: {
                                        curr: 1
                                    }
                                }, 'data');
                                layer.msg('已同意');
                            }
                        }
                    });

            }else if (obj.event === 'no') {
                    $.ajax({
                        url: '/advertiser/no?id='+data.id,
                        type: 'post',
                        dataType: 'json',
                        success: function (result) {
                            if (result.code == '0') {
                                // 重新加载表格数据
                                table.reload('currentTableId', {
                                    page: {
                                        curr: 1
                                    }
                                }, 'data');
                                layer.msg('已拒绝');
                            }
                        }
                    });
            }
        });

    });
</script>

<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        $('#yew3').click(function(){
            table.reload('currentTableId3', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
        });
        table.render({
            elem: '#currentTableId3',
            url: '/advertiser/launch/performance?adsId='+${account.id},
            method: 'post',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'id', title: 'ID', sort: true},
                {field: 'theme', title: '主题'},
                {field: 'brand', title: '品牌'},
                {field: 'price', title: '投放价格'},
                {templet:'<div>{{d.media.accountName}}</div>', title: '媒体主'},
                {title: '状态', templet: function (res) {
                        if (res.status == '1') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">自媒体审核</a>';
                        } else if (res.status == '2') {
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">平台审核</a>';
                        } else if (res.status == '3'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">投放完成</a>';
                        }else if (res.status == '4'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">正在投放中</a>';
                        }else if (res.status == '5'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">媒体主未通过</a>';
                        }else if (res.status == '6'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">管理员审核未通过</a>';
                        }else if (res.status == '7'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已拒绝验收</a>';
                        }else if (res.status == '8'){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete">已完成验收</a>';
                        }
                    }},

            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 10,
            page: true,
            request: {
                pageName: 'pageNum',
                limitName: 'pageSize'
            }
        });

        // 监听搜索操作
        form.on('submit(data-search-btn)', function (data) {
            /*var result = JSON.stringify(data.field);
            layer.alert(result, {
                title: '最终的搜索信息'
            });*/

            table.reload('currentTableId3', {
                page: {
                    curr: 1
                }
                , where: data.field
            }, 'data');
            return false;
        });
    });
</script>
</html>